#include "APP_Pool.h"
// #include "log.h"
#include "unistd.h"

void *task_func(void* arg)
{
    log_info("恭喜你中奖了!\n");
}

int main(int argc, char const *argv[])
{
    //配置 待提交任务结构体
    Task task = {.Task_fun = task_func,.arg = NULL};
    //初始化线程池
    APP_Pool_Init();
    int ret = APP_Pool_Submit_Task(&task);
    if(ret < 0)
    {
        perror("线程池提交任务异常 ");

    }
    sleep(10000);
    return 0;
}

